package cn.lisens.common.enums;

import cn.lisens.common.annotation.DictEnum;

@DictEnum(key = "sys_error_type", name = "错误类型")
public enum ErrorEnum implements CodedEnum {
	IDCARD_ERROR(1,"身份证错误"),
	FULLNAME_ERROR(2,"姓名错误"),
	AGE_ERROR(3,"年龄错误")
	;
	
	private final Integer code;
    private final String message;
    
    ErrorEnum(Integer code, String message){
    	this.code = code;
    	this.message = message;
    }
    
	@Override
	public Integer getCode() {
		return this.code;
	}
	@Override
	public String getMessage() {
		return this.message;
	}

	
}
